import { request } from 'umi';
import {ILogin} from "@/utils/user"
export let login = (data: ILogin) => {
    return request('api/auth/login', {
        method: 'POST',
        data
    })
}